package com.yuda.tools.detection.tool;

import org.springframework.jdbc.core.JdbcTemplate;

public class subjectQuestionCount {
    public int count(String subject_id, JdbcTemplate jdbcTemplate){
        int count=0;
        String sql1="select num from ques_count where subject_id="+subject_id+"";
//        System.out.println(sql1);
        count = jdbcTemplate.queryForObject(sql1, Integer.class);
        return count;
    }
}
